package com.learning.cloud2020.model;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

@Data
@NoArgsConstructor
@AllArgsConstructor
public class CommonResult<T> {
    private int code;
    private String message;

    private T data;


    public CommonResult(T data) {
        this.code = 200;
        this.message = "success";
        this.data = data;
    }

}
